﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MyCommunity.Models;

namespace MyCommunity.Models
{
    public class EventListViewModel<T>
    {
        public List<Event> events { get; set; }

        public void SetRole(bool isAdmin)
        {
            _isAdmin = isAdmin;
        }

        public bool isAdmin { get { return _isAdmin; } }
        private bool _isAdmin;

        public string search { get; set; }
    }
}
